package com.itheima.mall.mapper.smsMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.sms.SmsHomeAdvertise;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SmsHomeAdvertiseMapper extends BaseMapper<SmsHomeAdvertise> {
    /**
     * 修改上下线状态
     * id status
     */
    @Update("update sms_home_advertise set status=#{status} where id=#{id}")
    void updateStatus(Long id, Integer status);

}
